import Vue from 'vue'
//
export const PRODUCT_STATUS = [
  {type: 0, label: '上架中'},
  {type: 1, label: '下架中', color: "danger"},
]
//  1禁用 0启用
export const SYSTEM_STATUS = [
  {type: 0, label: '启用'},
  {type: 1, label: '禁用', color: "danger"},
]
export const SYSTEM_STATUS_BOOLEAN = [
  {type: true, label: '启用'},
  {type: false, label: '禁用', color: "danger"},
]
//
export const SYSTEM_MENU_TYPE = [
  {type: 1, label: '路由', color: ""},
  {type: 2, label: '菜单', color: "success"},
  {type: 3, label: '按钮', color: "danger"},
]

export const MEMBER_LEVEL = [
  {type: "1", label: '普通'},
  {type: "2", label: '白银', color: "danger"},
  {type: "3", label: '黄金', color: "danger"},
  {type: "4", label: '钻石', color: "danger"},
]

export const BANNER_TYPE = [
  {type: "1", label: 'APP轮播图'},
  {type: "2", label: 'H5轮播图', color: "danger"},
]

// 全局状态汇总
const GlobalStatus = {
  SYSTEM_MENU_TYPE,
  PRODUCT_STATUS,
  SYSTEM_STATUS,
  SYSTEM_STATUS_BOOLEAN,
  MEMBER_LEVEL,
  BANNER_TYPE
}

// 第一种方法: 集体导出 并注入到全局变量
window.GlobalStatus = Vue.prototype.$GlobalStatus = GlobalStatus
export default GlobalStatus
